<nz-tabset>
    <nz-tab nzTitle="结算价" (nzSelect)="changeTab(0)">
        <nz-table #dt1  [nzData]="data" nzFrontPagination="false" nzShowPagination="false">
            <thead>
                <tr>
                    <th>商品货号</th>                   
                    <th>原价</th>
                    <th>修改后价格</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let data of dt1.data">
                    <td>{{data.productCd}}</td>                   
                    <td>{{mode === 1 ? data.tradePrice : data.tradeDPrice}}</td>
                    <td>
                        {{ getNewPrice(1, data) }}
                    </td>
                </tr>
            </tbody>
        </nz-table>
    </nz-tab>
    <nz-tab nzTitle="批发价" (nzSelect)="changeTab(1)">
        <nz-table #dt2  [nzData]="data" nzFrontPagination="false" nzShowPagination="false">
            <thead>
                <tr>
                    <th>商品货号</th>                   
                    <th>原价</th>
                    <th>修改后价格</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let data of dt2.data">
                    <td>{{data.productCd}}</td>
                    <td>{{mode === 1 ? data.retailPrice : data.retailDPrice}}</td>
                    <td>
                        {{ getNewPrice(2, data) }}
                    </td>
                </tr>
            </tbody>
        </nz-table>
    </nz-tab>
    <nz-tab nzTitle="市场价" (nzSelect)="changeTab(2)">
        <nz-table #dt3  [nzData]="data" nzFrontPagination="false" nzShowPagination="false">
            <thead>
                <tr>
                    <th>商品货号</th>                   
                    <th>原价</th>
                    <th>修改后价格</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let data of dt3.data">
                    <td>{{data.productCd}}</td>
                    <td>{{mode === 1 ? data.marketPrice : data.marketDPrice}}</td>
                    <td>
                        {{ getNewPrice(3, data) }}
                    </td>                   
                </tr>
            </tbody>
        </nz-table>
    </nz-tab>
</nz-tabset>
<nz-radio-group *ngIf="tabIndex === 0" [(ngModel)]="radioValue1" style="margin-top: 10px">
    <div>
        <label nz-radio [ngStyle]="style" nzValue="A">直接修改价格：设置统一价格</label>
        <input nz-input type="text" style="width: 200px" [(ngModel)]="changeInput1">
    </div>
    <div style="margin-top: 8px">
        <label nz-radio [ngStyle]="style" nzValue="B">运用统一公式修改价格：原价</label>
        <nz-select style="width: 60px;" [(ngModel)]="selectedValue1">
            <nz-option nzValue="加" nzLabel="加"></nz-option>
            <nz-option nzValue="减" nzLabel="减"></nz-option>
            <nz-option nzValue="乘" nzLabel="乘"></nz-option>
            <nz-option nzValue="除" nzLabel="除"></nz-option>
        </nz-select>
        <nz-input-number style="margin-left: 8px; width: 132px" [(ngModel)]="calc1" [nzPrecision]="2"></nz-input-number>        
    </div>
</nz-radio-group>
<nz-radio-group *ngIf="tabIndex === 1" [(ngModel)]="radioValue2" style="margin-top: 10px">
    <div>
        <label nz-radio [ngStyle]="style" nzValue="A">直接修改价格：设置统一价格</label>
        <input nz-input type="text" style="width: 200px" [(ngModel)]="changeInput2">
    </div>
    <div style="margin-top: 8px">
        <label nz-radio [ngStyle]="style" nzValue="B">运用统一公式修改价格：原价</label>
        <nz-select style="width: 60px;" [(ngModel)]="selectedValue2">
            <nz-option nzValue="加" nzLabel="加"></nz-option>
            <nz-option nzValue="减" nzLabel="减"></nz-option>
            <nz-option nzValue="乘" nzLabel="乘"></nz-option>
            <nz-option nzValue="除" nzLabel="除"></nz-option>
        </nz-select>
        <nz-input-number style="margin-left: 8px; width: 132px" [(ngModel)]="calc2" [nzPrecision]="2"></nz-input-number>        
    </div>
</nz-radio-group>
<nz-radio-group *ngIf="tabIndex === 2" [(ngModel)]="radioValue3" style="margin-top: 10px">
    <div>
        <label nz-radio [ngStyle]="style" nzValue="A">直接修改价格：设置统一价格</label>
        <input nz-input type="text" style="width: 200px" [(ngModel)]="changeInput3">
    </div>
    <div style="margin-top: 8px">
        <label nz-radio [ngStyle]="style" nzValue="B">运用统一公式修改价格：原价</label>
        <nz-select style="width: 60px;" [(ngModel)]="selectedValue3">
            <nz-option nzValue="加" nzLabel="加"></nz-option>
            <nz-option nzValue="减" nzLabel="减"></nz-option>
            <nz-option nzValue="乘" nzLabel="乘"></nz-option>
            <nz-option nzValue="除" nzLabel="除"></nz-option>
        </nz-select>
        <nz-input-number style="margin-left: 8px; width: 132px" [(ngModel)]="calc3" [nzPrecision]="2"></nz-input-number>        
    </div>
</nz-radio-group>